from django.db.models.fields import CharField
from django.db import models

def AddToStringArray(target,splitter,item):
    arr=target.split(splitter)
    arr.append(str(item))
    return splitter.join(arr)
    
def DeleteFromStringArray(target,splitter,item):
    arr=target.split(splitter)
    for i in arr:
        if str(item)==i:
            arr.remove(str(item))
            break
    return splitter.join(arr)
